<!--{if $cat[icon]}-->
	<!--{eval $valueparse = parse_url($cat['icon']);}-->
    <!--{if !isset($valueparse['host'])}-->
        <!--{eval $cat[icon] = $_G['setting']['attachurl'].'common/'.$cat[icon].'?'.random(6);}-->
    <!--{/if}-->
<!--{else}-->
    <!--{eval $cat[icon] = IMGDIR . "/icon_forum_default.png";}-->
<!--{/if}-->
<div class="{if $cat[styleid]==1}sangtac_box{else}other_box{/if} cl">
    <div class="box_title">
    	<div class="left_title"><img src="{$cat[icon]}" width="28" height="26"/><span><a href="{if !empty($caturl)}$caturl{else}forum.php?name={echo locdau($cat[name]);}&gid=$cat[fid]{/if}" style="{if $cat[extra][namecolor]}color: {$cat[extra][namecolor]};{/if}"><h1>$cat[name]</h1></a></span></div><!--End left_title-->
        <div class="right_title">
            <ul>
                <!--{loop $cat[forums] $forumid}-->
                <!--{eval $forum=$forumlist[$forumid];}-->
                <!--{eval $forumurl = !empty($forum['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 
                'http://'.$forum['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$forum['fid'];}-->
                <li><a href="$forumurl"{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if} onmouseover="showthis($cat[fid],$forumid)"><h2>$forum[name]</h2>
                        <!--{if $forum[todayposts] && !$forum['redirect']}-->
                        <em class="xw0 xi1 x-add" style="display:none">(<strong>$forum[todayposts]</strong>)</em>
                        <!--{/if}-->
                        </a></li>
                 <!--{/loop}-->
            </ul>
        </div><!--End right_title-->
	</div>
	<!--{loop $listpost_wforum $key $list_b}-->
    <div id="content_$cat[fid]_$forumid" class="list-item-group ADD_MUC MB_CONTAINER {if $f == 0} cavtive {else} cunactive {/if}" style="float:none;">   
        <div class="main-new-gr clearfix" id="thread_$list_b[tid]">
            <div class="box-new-content">
                <div class="tomtat-content">
                   <div class="box-img-content">
                        <a href="forum.php?mod=viewthread&tid=$list_b[tid]" title="$list_b[subject]">
                        <!--{if $list_b['picatt']}-->
                            <!--{eval $keypic = rawurlencode(md5($list_b['tid'].'|100|100'))}-->
                            <img src="forum.php?mod=image&aid=$list_b['picatt']&size=100x100&key=$keypic&atid=$list_b['tid']">
                        <!--{elseif $list_b['picurl']}-->    
                            <img src="$list_b['picurl']">
                        <!--{else}-->
                            <!--{if $list_b['author']}-->
                                <!--{avatar($list_b[authorid],middle)}-->
                            <!--{else}-->
                            <img src="{IMGDIR}/frame_avatar.gif" alt="$_G[setting][anonymoustext]" title="$_G[setting][anonymoustext]" />
                            <!--{/if}-->
                        <!--{/if}-->
                        </a>
                    </div>
                    <div>
                        <a href="forum.php?mod=viewthread&tid=$list_b[tid]" class="xi2" $list_b[highlight] title="$list_b[subject]">
                            <img src="{$cat[icon]}" width="10" height="10"/><h3 class="title_h3">$list_b[subject]</h3>
                        </a>	
                        <samp class="box-icon-new">
                            <!--{if $list_b['weeknew']}-->
                            <img src="{IMGDIR}/new.gif" title="$list_b[subject]" width="22" height="7" alt="New" />
                            <!--{/if}-->
                            <!--{if $list_b[icon] >= 0}-->
                            <img src="{STATICURL}image/stamp/{$_G[cache][stamps][$list_b[icon]][url]}" alt="{$_G[cache][stamps][$list_b[icon]][text]}" align="absmiddle" />
                            <!--{/if}-->
                            <!--{if $list_b['attachment'] == 2}-->
                            <img src="{STATICURL}image/filetype/image_s.gif" alt="attach_img" title="{lang attach_img}" align="absmiddle" />
                            <!--{elseif $list_b['attachment'] == 1}-->
                            <img src="{STATICURL}image/filetype/common.gif" alt="attachment" title="{lang attachment}" align="absmiddle" />
                            <!--{/if}-->
                            <!--{if $list_b['digest'] > 0 && $list_b != 'digest'}-->
                            <img src="{IMGDIR}/digest_$list_b[digest].gif" align="absmiddle" alt="digest" title="{lang thread_digest} $list_b[digest]" />
                            <!--{/if}-->
                            <!--{if $list_b['displayorder'] == 0}-->
                            <!--{if $list_b[recommendicon] && $filter != 'recommend'}-->
                            <img src="{IMGDIR}/recommend_$list_b[recommendicon].gif" align="absmiddle" alt="recommend" title="{lang thread_recommend} $list_b[recommends]" />
                            <!--{/if}-->
                            <!--{if $list_b[heatlevel]}-->
                            <img src="{IMGDIR}/hot_$list_b[heatlevel].gif" align="absmiddle" alt="heatlevel" title="$list_b[heatlevel] {lang heats}" />
                            <!--{/if}-->
                            <!--{if $list_b['rate'] > 0}-->
                            <img src="{IMGDIR}/agree.gif" align="absmiddle" alt="agree" title="{lang rate_credit_add}" />
                            <!--{elseif $list_b['rate'] < 0}-->
                            <img src="{IMGDIR}/disagree.gif" align="absmiddle" alt="disagree" title="{lang posts_deducted}" />
                            <!--{/if}-->
                            <!--{/if}-->
                        </samp>  
                    </div>
                    <div class="author_date">
                            <ul class="clearfix">
                                <li class="width-box-author">
                                    <span class="name-author" title="{lang author}">
                                        <!--{if $list_b['author']}-->
                                            <a href="home.php?mod=space&uid=$list_b[authorid]" title="{if $list_b['author']}$list_b['author']{else}$_G[setting][anonymoustext]{/if}" c="1">$list_b['author']</a>
                                        <!--{else}-->
                                            $_G[setting][anonymoustext]
                                        <!--{/if}-->
                                    </span> 
                                </li> 
                                <li class="author-datime" title="Ngày đăng bài" {if $list_b['istoday']} {/if}>$list_b[dateline]</li>
                            </ul>
                         </div>  
                    <span class="text-indent">                                               	
                        $list_b[message]
                    </span>
                </div>
            </div>
        </div>
        <div class="box-thong-tin-khac  clearfix">
            <div class="thong-ke-add y clearfix">
                <ul class="y mark_never ">
                    <!--{if intval($list_b[views]) >= 1}-->
                    <li class="lever-c lev_class red_forum" title="Số lượt xem">$list_b[views] {lang number_view} </li>
                    <!--{else}-->
                    <li class="lever-c lev_class" title="Số lượt xem">$list_b[views] {lang number_view} </li>
                    <!--{/if}-->
    
                    <!--{if intval($list_b[replies]) >= 1}-->
                    <li class="lever-b">
                        <span title="Số bình luận">
                            <samp class="lev_class red_forum">$list_b[replies] {lang number_comment} </samp>
                            <samp class="lev_class"  title="Lần cuối bởi: $list_b[lastposter]">
                                <!--{if $list_b[replies]}-->
                                    -
                                    <!--{if $list_b['lastposter']}-->
                                        <a href="{if $list_b[digest] != -2}home.php?mod=space&username=$list_b[lastposter]{else}forum.php?mod=viewthread&tid=$list_b[tid]&page={echo max(1, $list_b[pages]);}{/if}" c="1">$list_b[lastposter]</a>
                                    <!--{else}-->
                                        $_G[setting][anonymoustext]
                                    <!--{/if}-->
                                        $list_b[lastpost]
                                <!--{/if}-->
                             </samp>   
                        </span>    
                    </li>
                    <!--{else}-->
                    <li class="lever-b"><span class="lev_class" title="Số bình luận">
                        $list_b[replies] {lang number_comment}</span>
                    </li>
                    <!--{/if}-->
                    <li class="add-conditions lev_class">
                        <!--{if $list_b['readperm']}--> 
                        <samp class="woo-permission ">
                            {lang readperm} <span class="lev_class xw1">$list_b[readperm]</span>
                        </samp>
                        <!--{/if}-->
                        <!--{if $list_b['price'] > 0}-->
                        <!--{if $list_b['special'] == '3'}-->
                        <span >[{lang thread_reward} <span class="lev_class xw1">$list_b[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][2]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][2]][title]}]</span>
                        <!--{else}-->
                        <samp class="woo-permission">
                            {lang price} <span class="lev_class xw1">$list_b[price] </span>{$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][title]}
                        </samp>
                        <!--{/if}-->
                        <!--{elseif $list_b['special'] == '3' && $list_b['price'] < 0}-->
                         {lang reward_solved}
                        <!--{/if}-->
                    </li>
                </ul>
            </div><!--thong-ke thong-ke-add -->
        </div>
    </div>
    <!--{/loop}-->
    <!--{if $multipage}--><div class="pgs cl mtm add_pad_pare">{echo $multipage}</div><!--{/if}-->
</div>